package com.helloworld.fiberflax.armor;

import com.helloworld.fiberflax.Fiberflax;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.ISpecialArmor;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.beans.Customizer;

import static com.helloworld.fiberflax.Fiberflax.FIBERFLAX_CREATIVE_TAB;

public class FiberflaxHelmet extends ItemArmor implements ISpecialArmor {
    public FiberflaxHelmet(ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) {
        super(materialIn, renderIndexIn, equipmentSlotIn);
        setCreativeTab(FIBERFLAX_CREATIVE_TAB);
        setRegistryName(new ResourceLocation(Fiberflax.MODID,"item_fiberflax_helmet"));

    }

    @Override
    public ArmorProperties getProperties(EntityLivingBase player, @Nonnull ItemStack armor, DamageSource source, double damage, int slot) {
        return null;
    }

    @Override
    public int getArmorDisplay(EntityPlayer player, @Nonnull ItemStack armor, int slot) {
        return 0;
    }

    @Override
    public void damageArmor(EntityLivingBase entity, @Nonnull ItemStack stack, DamageSource source, int damage, int slot) {

    }

    @Nullable
    @Override
    public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
        return "fiberflax:textures/models/armor_fiberflax_layer_1.png";
        //return super.getArmorTexture(stack, entity, slot, type);
    }
}
